package com.demo.entity.constants;

import javax.servlet.http.PushBuilder;

/**
 * @ClassName Constants
 * @Description
 * @Author Administrator
 * @Date 2023/9/13 22:23
 */
public class Constants {

    public static final String CHECK_CODE_KEY = "check_code_key";

    public static final String CHECK_CODE_KEY_EMAIL = "check_code_key_email";

    public static final String SESSION_KEY = "book_demo_session_key";


    public static final Integer     ZERO= 0;

    public static final Integer     ONE= 1;
    public static final Integer     TWO= 2;

    public static final Integer LENGTH_5 = 5;
    public static final Integer LENGTH_365 = 365;
    public static final Integer LENGTH_8 = 8;

    public static final Integer LENGTH_10 = 10;

    public static final Integer LENGTH_11 = 11;

    public static final Integer LENGTH_15 = 15;

    public static final Integer LENGTH_20 = 20;

    public static final Integer LENGTH_30 = 30;

    public static final Integer LENGTH_50 = 50;

    public static final Integer LENGTH_70 = 70;

    public static final Integer LENGTH_150 = 150;

    public static final Integer DEFUALT_ROOT_MENUID = 0;


    public static final String FILE_FOLDER_FILE = "file/";

    public static final String FILE_FOLDER_AVATAR = "avatar/";

    public static final String FILE_FOLDER_TEMP = "temp/";


    public static final String APP_UPDATE_FOLDER = "/app/";
    public static final String FOLDER_AVATAR = "avatar/";

    public static final String AVATAR_SUFFIX = ".jpg";

    public static final String IMAGE_PNG_SUFFIX=".png";

    public static final String DEFAULT_IMG = "default_avatar.jpg";

    /**
     * 过期时间 1分钟
     */
    public static final Integer REDIS_KEY_EXPIRES_ONE_MIN = 60;

    public  static final  Long MB=1024*1024L;
    public static final long REDIS_KEY_EXPIRES_FIVE_MIN = REDIS_KEY_EXPIRES_ONE_MIN * 5;

    final String TABLE_NAME_SHARE_INFO = "share_info";

    public static final String TRUE_STR = "正确";
    public static final String FALSE_STR = "错误";


    public static final String ZERO_STR = "0";
    public static final String ONE_STR = "1";

    public static final String[] LETTERS = new String[]{"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V",
            "W", "X", "Y", "Z"};



    public static final String REDIS_KEY_CHECKCODE = "easypan:check:";

    public static final String JWT_KEY_LOGIN_TOKEN = "jwt_login_token_key";

    public static final Integer JWT_TOKEN_EXPIRES_DAYS = 7;

    public static final String READ_IMAGE_PATH = "/api/file/getImage/";


    public static final Integer REDIS_KEY_EXPIRES_ONE_MINUTE =60;

    public static final Integer REDIS_KEY_EXPIRES_FIVE_MINUTE =REDIS_KEY_EXPIRES_ONE_MINUTE*5;


    public static final Integer REDIS_KEY_EXPIRES_DAY =REDIS_KEY_EXPIRES_ONE_MINUTE*24*60;
    public static final Integer REDIS_KEY_EXPIRES_ONE_HOUR =REDIS_KEY_EXPIRES_ONE_MINUTE*1*60;


    public static final String REDIS_KEY_SETTING= "easypan:syssetting:";

    public static final String REDIS_KEY_USER_SPACE_USE= "easypan:user:spaceuse:";

    public static final String REDIS_KEY_DOWNLOAD= "easypan:download:";


    public static final String REDIS_KEY_USER_FILE_TEMP_SIZE= "easypan:user:file:temp:";

    public static final String VIEW_OBJ_RESULT_KEY= "result";

    public static final String TS_NAME= "index.ts";

    public static final String M3U8_NAME= "index.m3u8";


    //登录相关提示
    public static final String LOGIN_ERROR_4_NOTFOUND_ACCOUNT="用户不存在";

    //密码错误
    public static final String LOGIN_ERROR_4_WRONG_PASSWORD="用户密码错误";

    public static final String LOGIN_ERROR_4_ACCOUNT_OR_PWD="用户名或密码错误";

    public static final String LOGIN_ERROR_4_BAN_ACCOUNT="账号已经被禁用";

    public static final String ADD_ERROR_4_PHONE_EXIST="账号已经被禁用";

    public static final String OPERATE_ERROR_4_NO_PERMISSION="您无权操作";

    public static final String  SAVE_ERROR_4_PHONEINFO_REPEAT="保存失败，手机号已经存在";


}
